<?

function smarty_function_ajax_libs( $params ) {

	$prototype = Smutty_Utils::getUrl(array(
		controller => 'smutty',
		action => 'resource',
		folder => 'scriptaculous',
		file => 'prototype.js'
	));
	$scriptaculous = Smutty_Utils::getUrl(array(
		controller => 'smutty',
		action => 'resource',
		folder => 'scriptaculous',
		file => 'scriptaculous.js'
	));
	$ajax = Smutty_Utils::getUrl(array(
		controller => 'smutty',
		action => 'resource',
		folder => 'javascript',
		file => 'ajax.js'
	));

	?>
<script type="text/javascript" src="<?= $prototype ?>"></script>
<script type="text/javascript" src="<?= $scriptaculous ?>"></script>
<script type="text/javascript" src="<?= $ajax ?>"></script>
<script type="text/javascript">
var BASE_URL = '<?= Smutty_Utils::getBaseUrl() ?>';
</script>
<?

}

?>